package com.adtech.adms.system.pojo;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

import com.adtech.adms.device.pojo.GuiPolicy;


/**
 * GuiTopo entity. @author MyEclipse Persistence Tools
 */

public class Topo implements java.io.Serializable {

	// Fields

	private Long id;
	private Topo parent;
	private GuiPolicy policy;
	private String idPath;
	private String name;
	private String nodeid;
	private String path;
	private String comment;
	private String fullPath;
	private String ipRange;
	private Timestamp createDate;
	private Timestamp editDate;
	private List<User> users = new ArrayList<User>();
	private List<Topo> children = new ArrayList<Topo>();
	

	// Constructors

	public List<Topo> getChildren() {
		return children;
	}

	public void setChildren(List<Topo> children) {
		this.children = children;
	}

	/** default constructor */
	public Topo() {
	}

	/** minimal constructor */
	public Topo(String idPath, String name, String path, String fullPath,
			Timestamp createDate, Timestamp editDate) {
		this.idPath = idPath;
		this.name = name;
		this.path = path;
		this.fullPath = fullPath;
		this.createDate = createDate;
		this.editDate = editDate;
	}

	/** full constructor */
	public Topo(Topo guiTopo, GuiPolicy policy, String idPath, String name, String nodeid,
			String path, String comment, String fullPath, String ipRange,
			Timestamp createDate, Timestamp editDate, List<Topo> children) {
		this.parent = guiTopo;
		this.policy = policy;
		this.idPath = idPath;
		this.name = name;
		this.nodeid = nodeid;
		this.path = path;
		this.comment = comment;
		this.fullPath = fullPath;
		this.ipRange = ipRange;
		this.createDate = createDate;
		this.editDate = editDate;
	}

	// Property accessors

	
	public Long getId() {
		return this.id;
	}

	public GuiPolicy getPolicy() {
		return policy;
	}

	public void setPolicy(GuiPolicy policy) {
		this.policy = policy;
	}

	public void setId(Long id) {
		this.id = id;
	}



	public Topo getParent() {
		return parent;
	}

	public void setParent(Topo parentTopo) {
		this.parent = parentTopo;
	}

	public String getIdPath() {
		return this.idPath;
	}

	public void setIdPath(String idPath) {
		this.idPath = idPath;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNodeid() {
		return this.nodeid;
	}

	public void setNodeid(String nodeid) {
		this.nodeid = nodeid;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getFullPath() {
		return this.fullPath;
	}

	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}

	public String getIpRange() {
		return this.ipRange;
	}

	public void setIpRange(String ipRange) {
		this.ipRange = ipRange;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getEditDate() {
		return this.editDate;
	}

	public void setEditDate(Timestamp editDate) {
		this.editDate = editDate;
	}


	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	
}